package com.itany.corejava.code16_反射;

import com.itany.corejava.code06_面向对象.Emp;

import java.io.Serializable;

/**
 * @author MissChen
 * @date 2024年03月26日 11:00
 */
public class User extends Person{
    public String username;
    private String password;
    private double reduce(double  i,double j){
        return i-j;
    }
    public double sum(double  i,double j){
        return i+j;
    }
    public User() {
    }
    private User(String username){
        this.username = username;
    }
    public User(String username, String password) {
        this.username = username;
        this.password = password;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "User{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
